﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SAServices.BLL
{
    class StandardBLL
    {
        internal static bool AddStandard(Model.ConnectionConext connCtx, Model.StandardInfo newStandardInfo)
        {
            return DAL.StandardDAL.AddStandard(connCtx, newStandardInfo);
        }

        internal static bool UpdateStandard(Model.ConnectionConext connCtx, Model.StandardInfo updateStandardInfo)
        {
            return DAL.StandardDAL.UpdateStandard(connCtx, updateStandardInfo);
        }

        internal static bool DeleteStandard(Model.ConnectionConext connCtx, string standardName)
        {
            return DAL.StandardDAL.DeleteStandard(connCtx, standardName);
        }

        internal static Model.StandardInfo GetStandard(Model.ConnectionConext connCtx, string standardName)
        {
            return DAL.StandardDAL.GetStandard(connCtx, standardName);
        }

        internal static List<Model.StandardInfo> GetAllStandards(Model.ConnectionConext connCtx)
        {
            return DAL.StandardDAL.GetAllStandards(connCtx);
        }

        internal static Model.StandardInfo GetStandard(Model.ConnectionConext connCtx, int standardId)
        {
            return DAL.StandardDAL.GetStandard(connCtx, standardId);
        }
    }
}
